﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace M.Dao.Client.Core
{
    public interface IDataAccess
    {   
        string Url { get; set; }

        QueryResult Query(string db,string accessToken, string sql, string pk, int pageSize, int pageNo);

        QueryResult<T> Query<T>(string db, string accessToken, string sql, string pk, int pageSize, int pageNo);

        GetResult Get(string db, string accessToken, string sql);

        WriteResult Write(string db, string accessToken, string sql);

        ScaleResult Scale(string db, string accessToken, string sql);

        DataResult Test(string db, string accessToken);


    }
}
